import { defineStore } from 'pinia'

const useSettingThemeStore = defineStore('setting-theme', {
  state: () => ({
    theme: '#409EFF',
    bgColor: 'rgba(64, 158, 255, 0.2)',
  }),
  actions: {
    setTheme(color, bg) {
      this.theme = color
      this.bgColor = bg
    },
  },
})

export default useSettingThemeStore
